* {
    margin: 0;
    top: 0;
    list-style: none;
}

.pointer {
    cursor: pointer;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

input[type="file" i] {
    appearance: none;
    background-color: initial;
    cursor: default;
    align-items: baseline;
    color: inherit;
    text-overflow: ellipsis;
    white-space-collapse: preserve;
    text-wrap: nowrap;
    text-align: start !important;
    padding: initial;
    border: initial;
    border-color: initial;
    overflow: hidden !important;
    border-radius: initial;
}

.container {
    width: 80%;
    margin: 0 auto;
    margin-top: 20px;
}

.upload {
    text-align: center;
    outline: none;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    border: 1px dashed #ccc;
    position: relative;
}

.upload-select {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.upload-select::before,
.upload-select::after {
    display: block;
    content: "";
    width: 30%;
    height: 5px;
    background-color: #606266;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
}

.upload-select::before {
    transform: translate(-50%);
}

.upload-select::after {
    transform: translate(-50%) rotate(90deg);
    transform-origin: center;
}

.upload__input {
    display: none;
}

.upload-progress {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.upload-progress::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #606266;
    opacity: 0.5;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    z-index: 2;
    left: 10%;
    top: 50%;
    width: 80%;
    height: 5px;
    border-radius: 5px;
    background-color: #fff;
    transform: translateY(-50%);
}

.btn {

    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    font-weight: 500;
    padding: 12px 20px;
    font-size: 14px;
}

.upload-progress .btn {
    position: absolute;
    top: 25px;
    left: 0px;
    right: 0px;
    color: #fefefe;
}

.upload-progress .progress-bar::before {
    content: "";
    display: block;
    width: var(--percent);
    height: 100%;
    background-color: #409eff;
    opacity: 0.9;
}

.upload-progress .progress-bar::after {
    content: "文件上传中...";
    display: block;
    color: #fefefe;
    margin-top: 5px;
}

.upload-result {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.upload-result .btn {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #818893;
    color: #f3f8f8;
    padding: 6px 10px;
    border-radius: 2px;
    z-index: 1;
}

.upload.select .upload-select,
.upload.progress .upload-progress,
.upload.result .upload-result,
.upload.result .upload-result>.btn {
    display: block;
}

.upload>img {
    position: absolute;
    width: 100%;
    max-height: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.upload.select>img {
    display: none;
}